package com.pjchat.pjchatclient.main;

import java.io.IOException;
import java.net.ConnectException;
import java.net.Socket;

import javax.swing.JOptionPane;

public class Main {
	public static void main(String[] args) throws IOException {

		// Socket socket = new Socket("10.222.29.169", 6666);
		// Socket socket = new Socket("10.222.29.164",6666);
		Socket socket = null;
		try {
			socket = new Socket("10.222.29.148", 6666);
		} catch (ConnectException e) {
			JOptionPane.showMessageDialog(null, "Server closed");
		}
		// Socket socket = new Socket("127.0.0.1", 6666);
			App app = new App(socket);
			app.start();
	}
}
